home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / test / locale / hello.c < prev    next >
C/C++ Source or Header  |  1993-03-10  |  343b  |  24 lines

  1.  
  2. /*
  3.  *  HELLO.C
  4.  */
  5.  
  6. #include <lib/ilocale.h>
  7.  
  8. main(ac, av)
  9. char *av[];
  10. {
  11.     int r = SetCatalog(av[1], "hello.catalog");
  12.  
  13.     if (r < 0)
  14.     puts("couldn't open locale");
  15.     else if (r > 0)
  16.     puts("couldn't open catalog in locale");
  17.  
  18.     puts("Hello world");
  19.     puts("This is a test");
  20.     puts("This is not in the catalog");
  21.     return(0);
  22. }
  23.  
  24.